package com.guojiganzhe.subject.infra.basic.es;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
/**
 * es配置类
 */
@Component
@ConfigurationProperties(prefix = "es.cluster")//绑定配置文件中前缀为es.cluster的属性。
public class EsConfigProperties {
    private List<EsClusterConfig> esConfigs = new ArrayList<>();//es集群配置

    public List<EsClusterConfig> getEsConfigs() {
        return esConfigs;
    }

    public void setEsConfigs(List<EsClusterConfig> esConfigs) {
        this.esConfigs = esConfigs;
    }
}
